#ifndef DK_CLIENT_H
#define DK_CLIENT_H

#include <QMainWindow>
#include <QTextStream>
#include <QTime>

namespace Ui {
class Dk_Client;
}

class Dk_Client : public QMainWindow
{
    Q_OBJECT
    
public:
    explicit Dk_Client(QWidget *parent = 0);
    ~Dk_Client();

    int IsNotExist(QString name);
    bool IsActive(QString name);
    bool ReadConfig();
    bool WriteConfig();
    bool MakeOrder();

    
private:
    Ui::Dk_Client *ui;
    bool MoveUpDown(int i);

public slots:
    bool RowSelected(int CurRow,int CurColumn,int PreRow,int PreColumn);
    bool setEnableButton(bool up,bool down,bool del);
    bool IsChange(int x,int y);
    bool MoveUp();
    bool MoveDown();
    bool Delete();
    bool Reset();
    bool Apply();
    bool SelectAll(int state);
    bool Config();
};

class QSortlist
{
public:
    int id;
    bool ischecked;
};

class List
{
public:
    int num;
    QString *ch;
};




#endif // DK_CLIENT_H
